package com.lemon.es.properties;

import com.lemon.core.factory.YamlPropertySourceFactory;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author 李猛
 * @datetime 2024/2/22 15:36
 * @description 类对象
 */
@Getter
@Setter
@Component
@PropertySource(value = "classpath:es-config.yml", factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "elasticsearch")
public class EsConfigProperties {
    //elasticsearch 地址
    private String host;
    //elasticsearch 类型
    private String type;
    //elasticsearch 端口
    private Integer port;
}
